/**
 * Title: AsyncHttpConst.java
 * Description:
 * Copyright: Copyright (c) 2008
 * Company:深圳彩讯科技有限公司
 * Author 罗旭东 (hi@luoxudong.com)
 * Date 2013-8-14 上午10:42:44
 * Version 1.0 
 */
package com.luoxudong.phonenumber.service.net.http.asynchttp;

/** 
 * ClassName: AsyncHttpConst 
 * Description:常量信息
 * Create by 罗旭东
 * Date 2013-8-14 上午10:42:44 
 */
public class AsyncHttpConst {
	public static final int MAX_CONNECTIONS = 200;//创建socket上线
	public static final int MAX_PER_ROUTE = 30;//最大并发连接数
	public static final int DEFAULT_SOCKET_TIMEOUT = 10 * 1000;
	public static final int DEFAULT_MAX_RETRIES = 3;//请求失败时重复请求次数
	public static final int DEFAULT_SOCKET_BUFFER_SIZE = 8192;
	public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
	public static final String ENCODING_GZIP = "gzip";
	public static final String USER_AGENT = "thinkdrive-android";
	public static final String USER_AGENT_VERSION = "1.0";
	public static final String HTTP_ENCODING = "UTF-8";
	public static final long UPLOAD_MAX_SIZE = 1024 * 1024 * 1024;
	public static long TRANSFER_BLOACK_SIZE = 1024* 1024;//文件上传块大小
}
